<%@ tag dynamic-attributes="dynAttr" body-content="scriptless" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/wslds-tags" prefix="lds"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%@ attribute name="isFront" rtexprvalue="true" type="java.lang.Boolean"%>

<c:choose>
	<c:when test="${isFront }">
		<body>
			<input type="hidden"  id="queryString" value="${ queryString }" />
			<div id="container_father">
				<div id="container_left">&nbsp;</div>
				<div id="container">
					<div id="top"></div>
					<div id="navigation">
						<div class="left"></div>
						<div class="center">
							<ul class="menuFont">
								<li><a class="menuClass" href="/">主页</a></li>
							</ul>
							<img title="RSS FEED" id="rss_img" class="rss_img" src="${ contextPath }/skin/light_blue/images/icon/feed.png" />
							<div class="search_area">
								<input type="text" id="search_text" value="" />
							</div>
						</div>
						<div class="right"></div>
					</div>
					<div id="content">
						<jsp:doBody />
					</div>
					<div id="sidebar">
						<script src="${ contextPath }/views/front/common/sidebar.js" type="text/javascript"></script>
						<div class="sidebar_block">
							<div class="sidebar_title">个人简介</div>
							<div class="sidebar_content">
								网名：老火稀饭<br /> 邮箱：domsn.lee@foxmail.com<br />
							</div>
						</div>
						<div class="sidebar_block">
							<div class="sidebar_title">类型</div>
							<div class="sidebar_content">
								<ul>
									<c:forEach items="${typeList}" var="type">
										<li style="padding-bottom: 4px;"><a href="${ contextPath }/search/type/${ type.id } "> ${type.name } </a>(${type.count }) <a
											style="color: #F07800; font-weight: bold;" href="${ contextPath }/rss/${type.id} " title="分类RSS-${type.name }"> <img
												style="position: relative; top: 1px; width: 12px; height: 12px;" src="${ contextPath }/skin/light_blue/images/icon/feed-small.png" />
										</a></li>
									</c:forEach>
								</ul>
							</div>
						</div>
						<div class="sidebar_block">
							<div class="sidebar_title">归档</div>
							<div class="sidebar_content">
								<ul>
									<c:forEach items="${dateList}" var="_date">
										<li style="padding-bottom: 4px;">
										<a rel="nofollow" href="${ contextPath }/search/date/<s:date name="#attr._date.date" format="yyyyMM" />"> 
										<s:date name="#attr._date.date" format="yyyy - MM" />
										</a>(${ _date.count })</li>
									</c:forEach>
								</ul>
							</div>
						</div>
					</div>
					<div class="clear"></div>
					<div id="footer">
						<div class="footer_content">
							<p>Copyright &copy; 2011 - 2012 wslds.com All Rights Reserved</p>
						</div>
						<a class="anchorLink" id="first_review_anchor" href="#firstReview"></a>
					</div>
				</div>
				<div id="container_right">&nbsp;</div>
			</div>
		</body>
	</c:when>
	<c:otherwise>
		<body>
			<input type="hidden" id="queryString" value="${ queryString }" />
			<div id="container_father">
				<div id="container_left">&nbsp;</div>
				<div id="container">
					<div id="top">
						<h1>http://wslds.com</h1>
					</div>
					<div id="navigation">
						<div class="left"></div>
						<div class="center">
							<!--  -->
							<ul class="menuFont">
								<li>
									<div class="hoverTitle">首页</div>
								</li>
								<li>
									<div class="hoverTitle_selected">博客</div>
								</li>
								<li>
									<div class="hoverTitle">关于</div>
								</li>
							</ul>
							<div class="search_area">
								<input type="text" id="search_text" value="" />
							</div>
						</div>
						<div class="right"></div>
					</div>
					<div id="content">
						<jsp:doBody />
						<div class="clear"></div>
					</div>
					<div id="sidebar">
						<script src="${ contextPath }/views/common/sidebar.js" type="text/javascript"></script>
						<div class="sidebar_block">
							<div class="sidebar_title">个人简介</div>
							<div class="sidebar_content">
								网名：Melon<br /> 邮箱：domsn.lee@foxmail.com<br />
							</div>
						</div>
						<div class="sidebar_block">
							<div class="sidebar_title">功能列表</div>
							<div class="sidebar_content">
								<ul>
									<li><lds:createLink contextPath="${ contextPath }" prefix="admin" controller="article" action="list" name="日志" /></li>
									<li><lds:createLink contextPath="${ contextPath }" prefix="admin" controller="type" action="list" name="日志类型" /></li>
									<li><lds:createLink contextPath="${ contextPath }" prefix="admin" controller="imgtype" action="list" name="相册" /></li>
									<li><lds:createLink contextPath="${ contextPath }" prefix="admin" controller="friend" action="list" name="友情链接" /></li>
									<li><lds:createLink contextPath="${ contextPath }" prefix="admin" controller="tag" action="list" name="标签" /></li>
								</ul>
							</div>
						</div>
					</div>
					<div class="clear"></div>
					<div id="footer">
						<div class="footer_content">
							<p>Copyright &copy; 2010 - 2011 mechoice.com All Rights Reserved</p>
						</div>
					</div>
				</div>
				<div id="container_right">&nbsp;</div>
			</div>
		</body>
	</c:otherwise>
</c:choose>
